derivative at extremum from graph